package com.deram.ctin.serv.member.api;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.member.entity.MemberFeedback;
import com.deram.ctin.serv.member.filter.MemberFeedbackFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/21 16:49
 * @version: V1.0
 */
@FeignClient("serv-member")
@RequestMapping("/memberFeedbackApi")
public interface MemberFeedbackApi {

    @PostMapping("/find")
    MemberFeedback find(@RequestParam("id") Long id);

    @GetMapping("/list")
    List<MemberFeedback> list(@RequestBody MemberFeedbackFilter filter);

    @PostMapping("/save")
    MemberFeedback save(@RequestBody MemberFeedback param);

    @PostMapping("/search")
    PageResult<MemberFeedback> search(@RequestBody MemberFeedbackFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/delete")
    void delete(@RequestParam("id") Long id);
}
